package com.ccn.qrcode.common;

import lombok.Data;

/**
 * 抽取出来公共参数
 *
 * @author tig
 */
@Data
public class Constant {

    /**
     * 文件路径
     */
    public static final String FILE_PATH = "C:\\workspace\\tmp\\zs\\tiff\\";
    public static final String FILE_TMP_PATH = "C:\\workspace\\tmp\\zs\\png\\";

    /**
     * 文件格式
     */
    public static final String FILE_OUT_PATH = "tiff";

    /**
     * 文件dpi
     */
    public static final Integer FILE_DPI = 800;


    /**
     * MD5获取 解析内容前3位与后5位，这里是前三位内容
     */
    public static final Integer MD5_BEGIN = 3;
    public static final Integer MD5_END = 5;



    /**
     * 生成二维码的默认边长，因为是正方形的，所以高度和宽度一致
     */
    public static final int DEFAULT_LENGTH = 310;
    /**
     * 生成二维码的格式
     */
    public static final String FORMAT = "png";

    /**
     * 绘制文件版本
     */
    public static final String QR_VERSION = "3";

    /**
     * V3 版本可用位置，后期做枚举 数据位
     */
    public static final int DATA_BIT = 550;

    /**
     * 文件颜色
     */
//    public static final int TWO = 0x0086CF;
//    public static final int THREE = 0x01A0E7;
//    public static final int SEX = 0x019E95;
//    public static final int EIGHT = 0x009946;

    public static final int TWO = 0xff0086cf;
    public static final int THREE = 0xff01A0E7;
    public static final int SEX = 0xff019E95;
    public static final int EIGHT = 0xff009946;



    public static final int BLACK = 0xFF000000;
    public static final int WHITE = 0xFFFFFFFF;

    /**
     * 点文件
     */
    public static final int MIN = 6;
    public static final int MAX = 9;

    /**
     * 要绘制的文件点范围数
     */
    public static final int SCOPE  = 20;


    /**
     * 固定数据，到达多少，是正版
     */
    public static final double SCORE = 0.6;















}
